package org.example.springboot137.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.springboot137.entity.Imagess;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ImagesMapper extends BaseMapper<Imagess> {
    /**
     * 查询图片
     */
    @Select("select * from imagess")
    List<Imagess> selectImages();

    @Select("select * from imagess where aid=#{aid}")
    List<Imagess> selectImg(Integer aid);
}
